//
//  NSMutableAttributedString+Attributed.h
//  MGPublic
//
//  Created by lhongl on 2025/10/28.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface NSMutableAttributedString (Attributed)

/// 文字大小
- (NSMutableAttributedString *(^)(UIFont *font))font;

/// 获取文字大小
- (UIFont * _Nullable (^)(void))getFont;

/// 文字颜色
- (NSMutableAttributedString *(^)(UIColor *color))textColor;

/// 获取文字颜色
- (UIColor * _Nullable (^)(void))getTextColor;

/// link
- (NSMutableAttributedString *(^)(NSString *link))link;

/// 背景色
- (NSMutableAttributedString *(^)(UIColor *color))backColor;

/// 下划线
- (NSMutableAttributedString *(^)(BOOL line))underline;

/// 下划线颜色
- (NSMutableAttributedString *(^)(UIColor *color))underlineColor;

/// 删除线
- (NSMutableAttributedString *(^)(BOOL line))through;

/// 删除线颜色
- (NSMutableAttributedString *(^)(UIColor *color))throughColor;

@end

NS_ASSUME_NONNULL_END
